package svc

import (
	"gozero-mongo/internal/config"
	model "gozero-mongo/mongo"
)

type ServiceContext struct {
	Config    config.Config
	UserModel model.UserModel
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:    c,
		UserModel: model.NewUserModel(c.Mongo.Uri, c.Mongo.Db, c.Mongo.Collection),
	}
}
